package org.elucid.chess.model;


public class Square {
	private final int row;
	private final int column;
	private final boolean isWhite;

	public Square(int row, int column, boolean b) {
		this.row = row;
		this.column = column;
		this.isWhite = b;
	}


	public int getRow() {
		return row;
	}

	public int getColumn() {
		return column;
	}


	public boolean isWhite() {
		return isWhite;
	}
	
	@Override
	public String toString() {
		return String.format("%s%s", (char) (65 + column), row + 1 );
	}
	
}
